package com.pangdonghao.internationalizationdemo.controller;

import com.pangdonghao.internationalizationdemo.core.response.Result;
import com.pangdonghao.internationalizationdemo.core.response.StatusCode;
import com.pangdonghao.internationalizationdemo.exception.DemoException;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestHeader;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


/**
 * 黑名单
 */
@Api(value = "测试",tags = {"测试"})
@RestController
@RequestMapping("/blacklist")
public class DemoController {

    @ApiOperation(value = "测试" ,  notes="测试")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "Accept-Language", value = "语言", paramType= "header")
    })
    @GetMapping("/demo")
    public Result demo(){
        throw new DemoException(StatusCode.USER_EXCEPTION);
    }



}
